﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chess.Common.Network
{
    [Serializable]
    public enum ErrorType
    {
        InvalidVersion
    }

    [Serializable]
    public class ErrorPacket : NetworkData
    {
        public override object Id
        {
            get { return "error"; }
        }

        public ErrorType ErrorId { get; set; }
        public string Message { get; set; }

        public ErrorPacket() { }

        public ErrorPacket(ErrorType errorId, string message)
        {
            ErrorId = errorId;
            Message = message;
        }
    }
}
